/*
 * KeyboardHandler.h
 *
 *  Created on: Nov 25, 2010
 *      Author: Thanh
 */

#ifndef KEYBOARDHANDLER_H_
#define KEYBOARDHANDLER_H_

#include <vector>

using namespace std;

class KeyboardHandler {
public:
	KeyboardHandler();
	virtual ~KeyboardHandler();

	static const int KEY_UP = 0;
	static const int KEY_DOWN = 1;
	void event(int key, int x, int y, int state);
	void getKeysPressed(vector<int> &keysPressed);
	bool isPressed(int key);

private:
	vector<int> __keysPressed;
};

#endif /* KEYBOARDHANDLER_H_ */
